package com.shengde.jinwawaforleader.utils;

import android.app.Activity;

import com.shengde.jinwawaforleader.views.ActionSheetDialog;

public class PhotoUtil {
	public static final int REQUEST_CODE_ALBUM = 100;
	public static final int REQUEST_CODE_CAMERA = 200;

	private static PhotoUtil instance;

	public static synchronized PhotoUtil getInstance() {
		if (instance == null)
			instance = new PhotoUtil();
		return instance;
	}

	public void choosePhoto(final Activity act) {
		new ActionSheetDialog(act)
				.builder()
				.setTitle("请选择操作")
				.setCancelable(false)
				.setCanceledOnTouchOutside(false)
				.addSheetItem("相册", ActionSheetDialog.SheetItemColor.Black,
						new ActionSheetDialog.OnSheetItemClickListener() {
							@Override
							public void onClick(int which) {
								
							}
						})
				.addSheetItem("拍照", ActionSheetDialog.SheetItemColor.Black,
						new ActionSheetDialog.OnSheetItemClickListener() {
							@Override
							public void onClick(int which) {
								
							}
						}).show();
	}

	
	
}

